<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../common/init_context.jsp"%>
<c:if test="${gopayAcctId ne null }">
<script type="text/javascript" src="${ROOT}/static/js/gopay/payInMoney.js"></script>
	<div class="borderBox-3">
		<div class="titleBox-1">
			<h6>帐户信息</h6>
		</div>
	<form action="${ctx }/sec/pay/gopayChannel.shtml" method="post" id="payInMoneyByGopayForm" name="payInMoneyByGopayForm">
		<table class="table-tml">
			<tbody>
				<tr>
					<th width="305px">客户名称：</th>
					<td>${custName }</td>
				</tr>
				<tr>
					<th>G商银通会员账户：</th>
					<td>${gopayAcctId }</td>
				</tr>
				<tr>
					<th>可用余额：</th>
					<td><span class="red">${avaAmt }</span></td>
				</tr>
				<c:if test="${avaFlag eq 1}">
					<tr>
						<th>支付密码：</th>
						<td>
							<div style="float:left;border:1px solid #ccc;height:24px;" id="payInMoneyPasswordDiv"></div>
							<button type="button" class="btn-3" style="float:left;margin-left:10px" id="payInMoneyByGopaySubmitBt" onclick="payInMoneyByGopaySubmit();">确认支付</button>
						</td>
					</tr>
				</c:if>
				<c:if test="${avaFlag eq 2}">
					<tr>
						<th><input type="checkbox" id="otherPayInMoney" name="otherPayInMoney" onclick="otherPayTrigger();"/></th>
						<td><span class="font12 color-66">使用账户支付<span class="red">${avaAmt }</span>元，剩余<span class="red">${shortfallPayAmt }</span>元使用其他支付方式</span></td>
					</tr>
				</c:if>
				<c:if test="${avaFlag eq 3}">
				</c:if>
			</tbody>
		</table>
		<input type="hidden" name="orderId" id="orderId" value="<%=request.getParameter("orderId")%>"/>
		<input type="hidden" name="formhash" id="formhash" value="${formhash }"/>
		<input type="hidden" name="gopayAcctId" id="gopayAcctId" value="${gopayAcctId }"/>
		<input type="hidden" name="pageFrom" value="order"/>
		<input type="hidden" name="avaFlag" id="avaFlag" value="${avaFlag }"/>
		<input type="hidden" name="gopayUser" id="gopayUser" value="${gopayUser }"/>
		</form>
	</div>
</c:if>